package com.hzit.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@ConfigurationProperties(prefix = "jdbc")  // 此时在application.properties或application.yml文件中找到jdbc前缀匹配的属性并为其赋值
// @Component
@Data
public class DBProperties {
	private String url;
	private String driverClassName;
	private String username;
	private String password;
}
